<script>
    function del(id){
        $.post("${ctx}/offer/delFile/"+id,function(data){
        })
    }


</script>

<table class="easyui-datagrid" style="width:387px;height:213px" id="dg">
    <thead>
    <tr>
        <th data-options="field:'code',width:40">序号</th>
        <th data-options="field:'name',width:180">文件名</th>
        <th data-options="field:'time',width:75">上传时间</th>
        <th data-options="field:'del',width:42">删除</th>
        <th data-options="field:'download',width:42">下载</th>
    </tr>
    </thead>
    <tbody>
    <#list files as file>
    <tr>
        <td>${file_index + 1}</td>
        <td><a href='${ctx}/upload/${file.fileName!""}'>${file.fileName!""}</a></td>
        <td>${file.createTime!""}</td>
        <td><a href='#' onclick="del(${file.id!""})">删除</a></td>
        <td><a href='${ctx}/upload/${file.fileUrl!""}'>下载</a></td>
    </tr>
    </#list>
    </tbody>
</table>

